package com.example.machine.model;

import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Home-pc
 * Date: 2024-02-19
 * Time: 10:17
 */

@Data
//用于返回翻页结果的类
public class PageResult<T> {
    private List<T> records;
    private Integer total;

    private PageRequest pageRequest;

    public PageResult(List<T> records, Integer total, PageRequest pageRequest) {
        this.records = records;
        this.total = total;
        this.pageRequest = pageRequest;
    }
}
